<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
		"http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>doh.robot Tooltip Mouse Quirks Test</title>

		<style>
			@import "../../../../util/doh/robot/robot.css";
		</style>

		<!-- required: dojo.js -->
		<script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true"></script>

		<script language="JavaScript" type="text/javascript">
			require([
				"dojo/dom-class", // dojo.hasClass
				"dojo/ready", // dojo.ready
				"doh/runner",	//doh functions
				"dijit/registry",  // dijit.registry.byId
				"dijit/robotx"
			], function(domClass, ready, runner, registry){
				ready(function(){

					runner.robot.initRobot("../test_RoundRectList-check.html");

					runner.register("dojox.mobile.ButtonList mouse tests", [
						{
							name: "ButtonList mouse tests",
							timeout: 10000,
							runTest: function(){
								var d = new runner.Deferred();

								runner.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_2").domNode, 1000);
								runner.robot.mouseClick({left: true}, 500);

								runner.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_3").domNode, 1000);
								runner.robot.mouseClick({left: true}, 500);

								runner.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_4").domNode, 1000);
								runner.robot.mouseClick({left: true}, 500);

								runner.robot.sequence(d.getTestCallback(function(){
									doh.assertTrue(domClass.contains(dijit.registry.byId("dojox_mobile_ListItem_2").domNode, "mblListItemUnchecked"), "dojox_mobile_ListItem_2");
									doh.assertTrue(domClass.contains(dijit.registry.byId("dojox_mobile_ListItem_3").domNode, "mblListItemChecked"), "dojox_mobile_ListItem_3");
									doh.assertTrue(domClass.contains(dijit.registry.byId("dojox_mobile_ListItem_4").domNode, "mblListItemChecked"), "dojox_mobile_ListItem_3");
								}), 1000);
								return d;
							}
						}
					]);
					runner.run();
				});
			});
		</script>
	</head>
</html>
